package pres.wchen.bussiness.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @作者： wchen
 * @描述：
 * @创建时间： 2018/1/16 16:32
 * @版本：Copyright 2018, Inc. All Rights Reserved.
 * @修改信息：
 */
@Configuration
public class ResourceConfig extends WebMvcConfigurerAdapter {


    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/**")
                .addResourceLocations("classpath:/static/");

        super.addResourceHandlers(registry);
    }
}
